﻿using ICAM.DataLayer;
using ICAM.Model;
using ICAM.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using static ICAM.Model.AlarmDetail;

namespace ICAM.View
{
    /// <summary>
    /// AlaramItemListView.xaml 的交互逻辑
    /// </summary>
    public partial class AlaramItemListView : UserControl
    {
        //public System.Collections.ObjectModel.ObservableCollection<AlarmRestorationInfoModule> Collection { get; set; }
        public AlaramItemListView()
        {
            InitializeComponent();
            //Collection = new System.Collections.ObjectModel.ObservableCollection<AlarmRestorationInfoModule>();
            //this.Loaded += AlaramRestoreView_Loaded;
        }
        private void AlaramRestoreView_Loaded(object sender, RoutedEventArgs e)
        {
            //var info = this.DataContext as AlarmItemViewModule;
            //if (info != null)
            //{
            //    var data = new DataService();
            //    AlarmInfo info1 = data.GetAlarmRestorationInfo(info, 15);
            //    foreach (AlarmRestorationInfo item in info1.ListAlarmRestorationInfo)
            //    {
            //        Collection.Add(new AlarmRestorationInfoModule(item));
            //    }
            //    this.listBox.DataContext = this;
            //}
        }
    }
}
